﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace League.Entity
{
    public class TeamDataFromJson
    {
        public TeamData home { get; set; }
        public TeamData away { get; set; }
    }

    public class TeamData
    {
        /// <summary>
        /// Season Year
        /// </summary>
        public string seasonId { get; set; }

        /// <summary>
        /// Round Number
        /// </summary>
        public string matchDay { get; set; }

        /// <summary>
        /// League Name
        /// </summary>
        public string competitionName { get; set; }

        /// <summary>
        /// Team Name
        /// </summary>
        public string team { get; set; }

        /// <summary>
        /// Goal
        /// </summary>
        public byte goals { get; set; }

        /// <summary>
        /// Shoot on target
        /// </summary>
        public byte ontargetScoringAtt { get; set; }

        /// <summary>
        /// Shoot
        /// </summary>
        public byte totalScoringAtt { get; set; }

        /// <summary>
        /// Save is savedObox + savedIbox
        /// </summary>
        public byte savedObox { get; set; }

        public byte savedIbox { get; set; }

        /// <summary>
        /// Corner
        /// </summary>
        public byte wonCorners { get; set; }

        /// <summary>
        /// Free kick
        /// </summary>
        public byte fkFoulLost { get; set; }

        /// <summary>
        /// Out of bound
        /// </summary>
        public byte totalThrows { get; set; }

        /// <summary>
        /// Fouls
        /// </summary>
        public byte fouls { get; set; }

        /// <summary>
        /// Offside
        /// </summary>
        public byte totalOffside { get; set; }

        /// <summary>
        /// Ball control
        /// </summary>
        public decimal possessionPercentage { get; set; }

        /// <summary>
        /// Pass successful percent
        /// </summary>
        public decimal passPercent { get; set; }

        /// <summary>
        /// Pass middle successful percent
        /// </summary>
        public decimal crossPercent { get; set; }

        /// <summary>
        /// Tackling successful percent
        /// </summary>
        public decimal tacklePercent { get; set; }

        /// <summary>
        /// Head successful percent
        /// </summary>
        public decimal aerialPercent { get; set; }

        /// <summary>
        /// Yellow card
        /// </summary>
        public byte totalYelCard { get; set; }

        /// <summary>
        /// Red card
        /// </summary>
        public byte totalRedCard { get; set; }
    }
}
